package io.renren.modules.clothingpicture.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.clothingpicture.dto.ClothingPictureDTO;
import io.renren.modules.clothingpicture.entity.ClothingPictureEntity;
import io.renren.modules.clothingpicture.vo.ClothingPictureVO;

/**
 * 衣服图片表
 *
 * @author lzy lzy
 * @since 1.0.0 2021-08-30
 */
public interface ClothingPictureService extends IService<ClothingPictureEntity> {

    /**
     * 保存
     * @param clothingPictureDTO
     */
    void save(ClothingPictureDTO clothingPictureDTO);

    /**
     * 修改
     * @param clothingPictureDTO
     */
    void update(ClothingPictureDTO clothingPictureDTO);

    /**
     * 根据服装类型表id查询图片
     * @param typeId
     * @return
     */
    ClothingPictureVO queryPictureByTypeId(Long typeId);

    /**
     * 根据服装类型表id更新图片
     * @param typeId
     */
    void updatePicture(Long typeId,String pictureUrl);

    /**
     * 根据服装类型表id删除图片
     * @param id
     */
    void deleteTypeId(Long id);
}
